<?php
declare(strict_types=1);
/**
 * This file is part of Hyperf Mall.
 *
 * @link     https://gitee.com/scwlkj/hypref_mall
 * contact  hyperf_mall@163.com
 */
namespace App\Common;

class CurrentDb
{
    use Singleton;

    private $db;

    public function setDb($db)
    {
        $this->db = $db;
    }

    public function getDb(): string
    {
        return $this->db ?: '';
    }
}
